package com.myproxyDynamicSimulation;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class HetongHandler implements InvocationHandler{

	private Object target;
	
	public HetongHandler(Object target){
		this.target = target;
	}
	
	@Override
	public Object invoke(Object proxy, Method method, Object[] args) {
		
		System.out.println("签合同--模拟HetongHandler");
		try {
			method.invoke(target, args);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}

}
